<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="tags" tagdir="/WEB-INF/tags"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"
%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"
%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%>
<head>
	<title><fmt:message key="login.passwordLost.title" /></title>
</head>
<body>
	<c:url value="/login/resetPassword" var="resetPasswordUrl"/>
    <form:form action="${resetPasswordUrl}" id="passwordForm" modelAttribute="passwordForm" method="post">
        <form:errors cssClass="error"/>
        <table>
            <tbody>
                <tr>
                    <th><fmt:message key="sfMockAccount_email" /></th>
                    <td>
                        <form:input path="email"/>
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.ElementDecoration({
                                elementId : "email",
                                widgetType : "dijit.form.ValidationTextBox",
                                widgetAttrs : { 
                                    required : true
                                }
                            }));
                        </script>
                        <form:errors cssClass="error" path="email"/>
                    </td>
                </tr>
            </tbody>
            <tfoot>
                <tr>
                   <td colspan="2">
                        <div class="buttons">
                            <button id="resetPasswordButton" class="ok" type="submit"><fmt:message key="label.form.submit"/></button>
                            <script type="text/javascript">
                                Spring.addDecoration(new Spring.ValidateAllDecoration({
                                    elementId:'resetPasswordButton', 
                                    event:'onclick'
                                }));
                            </script>
                        </div>
                    </td>
                </tr>
            </tfoot>
        </table>
    </form:form>
    <p><i><fmt:message key="login.passwordLost.description"/></i></p>
</body>
